import {createRouter, createWebHistory} from 'vue-router'
import type {RouterOptions} from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'index',
            component: () => import('../views/IndexView.vue')
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/TestView.vue')
        },
        {
            path: '/manage',
            name: 'manage',
            component: () => import('../views/ManageView.vue')
        },
        {
            path: '/edit',
            name: 'edit',
            component: () => import('../components/article/EditArticle.vue')
        }
    ]
} as RouterOptions)

export default router
